package git.bankview.sl.report;

public class ReportSchdException extends Exception
{
	private int m_nState;
	
	public ReportSchdException(int nState, String msg, Throwable cause)
	{
		super(msg, cause);
		m_nState = nState;
	}
	
	public int getSchdState()
	{
		return m_nState;
	}
	
	public String toString()
	{
		StringBuffer buff = new StringBuffer();
		buff.append(m_nState).append(":").append(getMessage());
		if (null != getCause())
			buff.append(":").append(getCause().getMessage());
			
		return buff.toString();
	}
}
